package mest.dao.Modeling;

import mest.VO.hank.model.customer_fileModel;
import mest.VO.hank.model.employeeFileModel;
import mest.entity.customer_file;
import mest.entity.employee_file;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-13 21:29
 */
public interface ICustomerFileDao {

//    1.新增功能
    int insertCustomerFile(@Param("customer_file")customer_file ct ,@Param("theirDb")String theirDb) throws  Exception;

//   2.基本查询-数量
    int selectCount(@Param("theirDb")String theirDb);

//   3.基本查询-分页
    List<customer_file> findCustomerFilePage(@Param("index") int index, @Param("pageSize") int pageSize ,@Param("theirDb")String theirDb);


    //1.删除方法
    int delModel(@Param("id")Integer id,@Param("theirDb")String theirDb);

    //2.动态更新某个值
    int updateByPrimaryKeySelective(@Param("customer_file")customer_file record ,@Param("theirDb")String theirDb);


    //1.基本查询-分页-模糊查询-过滤删除订单
    List<customer_fileModel> queryAllModel(@Param("index") Integer index,
                                           @Param("pageSize") Integer pageSize, @Param("record") String record ,@Param("theirDb")String theirDb);
    //2.查询总数
    int findCount(@Param("record") String record ,@Param("theirDb")String theirDb);



}
